//
//  WWRequestAPI+Version.m
//  WangLottery
//
//  Created by 黄修勇 on 12-9-14.
//
//

#import "WWRequestAPI+Version.h"

@implementation WWRequestAPI (Version)

-(long)recordSourceWithTarget:(id)target{

    return [self requestWithAction:@"recordsource" paras:nil target:target parserSEL:@selector(simpleResultForString:)];
}

-(long)getNewVersionWithTarget:(id)target{

    return [self requestWithAction:@"getnewver" paras:nil target:target parserSEL:@selector(versionDicForString:)];
}
@end


@implementation WWDataParser (VersionParser)

-(NSDictionary *)versionDicForString:(NSString *)string{

    return [self simpleResultForString:string keyArray:[NSArray arrayWithObjects:@"result", nil]];
}

@end